(function() {
  var AppConfig, MongooseClient, MongooseConnection, initModel, schemaInfoList, _;

  _ = require('underscore');

  MongooseClient = require('../../../models/mongoose_client');

  AppConfig = require('../config');

  MongooseConnection = MongooseClient.getMongooseConnection(AppConfig.mongo);

  schemaInfoList = {
    Commodity: 'commodity'
  };

  initModel = function(schemaInfoList) {
    return _.each(schemaInfoList, function(value, key) {
      return module.exports[key] = MongooseConnection.model(key, require("./schema/" + value));
    });
  };

  initModel(schemaInfoList);

}).call(this);
